package cn.kgc.springcloud.nacos.client;

import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author: mosin
 * @version: v1.0  2022/8/22
 */
@FeignClient(value = "HYSTRIXCLIENT",fallback = HystrixClientFallback.class)
public interface HystrixClient {

    @RequestMapping("/hystrix/t1")
    String test1(@RequestParam Integer number);

}
